<script setup>
import { ref } from 'vue'

defineProps({
  msg: String,
})

const count = ref(0)
const zhong = ()=>{
  alert("中奖了")
}
const dianwo = ()=>{
  alert("恭喜你，中奖了")
}
</script>

<template>
  <h1>{{ msg }}</h1>
  <button @click="zhong">点我中彩票</button>
  <br>
  <button class="bg" @click="dianwo">点我有好运!</button>


</template>

<style scoped>
.read-the-docs {
  color: #888;
}
.bg{
  background-color: #bd1717;
  color: #1542b8;
}
</style>
